package com.webshop.app.dao;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.webshop.app.entity.Order;

@Stateless
public class OrderDAO {
	
	@PersistenceContext(unitName="webshopPU")
	private EntityManager em;
	
	public Order createOrder(Order order){
		em.persist(order);
		return order;
	}

}
